<% form_for(:graphic, :url => graphics_path, :html => { :multipart => true }) do |f| %>
	<fieldset>
		<legend>Upload graphic for "<%= params[:controller_type].singularize.capitalize.constantize.find(params[:id]).name %>"</legend>
		<%= error_messages_for :graphic %>
		<br/>
  	<p>
			<label for="graphic">Browse for File</label>
			<br/>
			<%= f.file_field :uploaded_data, :class => :input_line %>
		</p>
	 	
		<%= hidden_field_tag :controller_type, params[:controller_type] %>
		<%= hidden_field_tag :graphicable_id, params[:id] %>
		
		<ul class="right">
			<li class="horizontal">
				<%= link_to "Cancel", :controller => params[:controller_type], :action => :show, :id => params[:id] %>
			</li>
			<li class="horizontal">|</li>
   		<li class="horizontal"><%= submit_tag "Ok" %></li>
		</ul>
		<br/>
	</fieldset>
<% end %>